package com.heima.admin.controller.v1;

import com.heima.apis.admin.lAdminClient;
import com.heima.model.common.dtos.PageRequestDto;
import com.heima.model.common.dtos.PageSensitive;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/api/v1/sensitive")
@RestController
public class AdminController {

    @Autowired
    private lAdminClient lAdminClient;

    @PostMapping("/list")
    public ResponseResult adminlist(@RequestBody PageSensitive dto){
        log.info("先进这里面");
        ResponseResult list = lAdminClient.list(dto);
        return ResponseResult.okResult(list);
    }


}
